package com.tencreat.service.mall;

import java.util.List;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.mall.MallMessageList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.domain.mall.vo.MallMessageListVO;

/**
 * 消息列Service接口
 *
 * @author tencreat
 * @date 2021-11-24
 */
public interface IMallMessageListService  extends IService<MallMessageList> {
    /**
     * 查询消息列
     *
     * @param id 消息列ID
     * @return 消息列
     */
    public MallMessageList selectMallMessageListById(ReqIdParam id);

    /**
     * 查询消息列列表
     * @return 消息列集合
     */
    public List<MallMessageListVO> selectList(Integer isToday,String mobile);

    Long unreadMessageSum();

    List<MallMessageListVO> listByUserId(Long userId);

    /**
     * 新增消息列
     *
     * @param mallMessageList 消息列
     * @return 结果
     */
    public int insertMallMessageList(MallMessageList mallMessageList);

    /**
     * 修改消息列
     *
     * @param mallMessageList 消息列
     * @return 结果
     */
    public int updateMallMessageList(MallMessageList mallMessageList);

    /**
     * 批量删除消息列
     *
     * @param ids 需要删除的消息列ID
     * @return 结果
     */
    public int deleteMallMessageListByIds(ReqIdsParam ids);

    /**
     * 删除消息列信息
     *
     * @param id 消息列ID
     * @return 结果
     */
    public int deleteMallMessageListById(ReqIdParam id);
}
